package com.sky.mapper;

import com.sky.dto.CategoryDTO;
import com.sky.po.CategoryPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Content: Category实体的Mmapstruct转换
 * @Author: Asen
 * @Date: 2023/8/31 14:20
 */
@Mapper
public interface CategoryMapper {
    CategoryMapper INSTANCE = Mappers.getMapper(CategoryMapper.class);

    CategoryDTO POConvertDTO(CategoryPO source);

    CategoryPO DTOConvertPO(CategoryDTO source);
}
